# -*- coding: utf-8 -*-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
    <title>Repoze.who test</title>
</head>

<body>
	% if request.environ.get("REMOTE_USER"):
		You are currently logged in as ${request.environ.get("REMOTE_USER")}.
		${h.link_to("Sign Out", "%s%s" % (h.current_url(), g.SIGNOUT_PART))}
	% else:
		<%include file="/login/miniform.mako"/>
	% endif

	<h1> Authentification Tests </h1>
	
	<span> <a href=${h.url_for('/home')}> Home </a> </span><br/>
	<span> <a href=${h.url_for(controller='/home', action='private')}> Private space </a> </span><br/>
	
	<br/>
	
    ${ next.body() }
    
</body>
</html>